home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / overview / moreisbetter / mib-libraries / moreappleevents / moreappleevents.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.1 KB  |  66 lines

  1. /*
  2.     File:        MoreAppleEvents.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    Pete Gontier
  7.  
  8.     Copyright:    Copyright (c) 1998 Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <4>     2/15/99    PCG     add AEGetDescDataSize for non-Carbon clients
  21.          <3>     1/29/99    PCG     add AEGetDescData
  22.          <2>    11/11/98    PCG     fix headers
  23.          <1>    11/10/98    PCG     first big re-org at behest of Quinn
  24.  
  25.     Old Change History (most recent first):
  26.  
  27.          <4>    10/11/98    Quinn   Convert "MorePrefix.h" to "MoreSetup.h".
  28.          <3>      9/9/98    PCG     re-work import and export pragmas
  29.          <2>     7/24/98    PCG        coddle linker (C++, CFM-68K)
  30.          <1>     6/16/98    PCG     initial checkin
  31. */
  32.  
  33. #pragma once
  34.  
  35. #include "MoreSetup.h"
  36.  
  37. #include <AppleEvents.h>
  38. #include <Processes.h>
  39.  
  40. #ifdef __cplusplus
  41.     extern "C" {
  42. #endif
  43.  
  44. #pragma import on // for clients
  45. #pragma export on // for building a library
  46.  
  47. pascal OSErr    SenderIsFinder            (const AppleEvent *, Boolean *);
  48. pascal OSErr    SetReplyErrorNumber        (OSErr errToReport, AppleEvent *);
  49. pascal OSErr    CreateProcessTarget        (ProcessSerialNumber *, AEDesc *);
  50. pascal OSErr    CreateSimpleAppleEvent    (AEEventClass, AEEventID, ProcessSerialNumber *, AppleEvent *);
  51. pascal OSErr    SimplySendAppleEvent    (const AppleEvent *, AppleEvent *);
  52.  
  53. #if !TARGET_CARBON
  54.  
  55. pascal Size        AEGetDescDataSize        (const AEDesc *);
  56. pascal OSErr    AEGetDescData            (const AEDesc *, DescType, void *, Size);
  57.  
  58. #endif
  59.  
  60. #pragma import reset // for clients
  61. #pragma export reset // for building a library
  62.  
  63. #ifdef __cplusplus
  64.     }
  65. #endif
  66.